package com.spi.soconversion.util;

public enum ConversionType {
	INSTALLBASE(1, "InstallBase"), //
	CLOSEDSALESORDER(2, "ClosedSalesOrder"),//
	OPEN_SALES_ORDER(3, "OpenSalesOrder");

	private int code;
	private String displayText;

	private ConversionType(int code, String displayText) {
		this.code = code;
		this.displayText = displayText;

	}

	public static ConversionType valueOf(int code) {
		for (ConversionType sct : ConversionType.values()) {
			if (sct.code == code) {
				return sct;
			}
		}
		return null;
	}

	public int intValue() {
		return code;
	}

	public String getDisplayText() {
		return displayText;
	}
}
